﻿/// <reference name="MicrosoftAjax.js"/>
/// <reference name="Dimok.Web.UI.JS.LQuery.VSDoc.js" type="Dimok.Web.UI"/>
/// <reference name="Dimok.Web.UI.JS.MSAjaxExtentions.js" type="Dimok.Web.UI"/>
Type.registerNamespace("motobankcorp");
motobankcorp.Bridge_Payments = function(element) {
  motobankcorp.Bridge_Payments.initializeBase(this, [element]);
}
motobankcorp.Bridge_Payments.prototype = {
  initialize: function() {
    motobankcorp.Bridge_Payments.callBaseMethod(this, 'initialize');
    this._wireEvents();
  },
  dispose: function() {
    motobankcorp.Bridge_Payments.callBaseMethod(this, 'dispose');
  },
  _wireEvents: function() {
    var pe = this.findPageEventsGlobal();
    if (!pe) return;
    pe.add_usixDeselected(Function.createDelegate(this, function() {
      this.get_RGE().set_filterTemp();
    }));
    pe.add_usixSelected(Function.createDelegate(this, function(sender, eventArgs) {
      var keys = eventArgs.get_keys();
      this.get_RGE().set_filterTemp({ Id__: '"' + keys.get_UsixID() + '"', CompanyID: keys.get_CompanyID_Raw() });
    }));
  }
}

motobankcorp.Bridge_Payments.registerClass('motobankcorp.Bridge_Payments', Dimok.Table);
